<?php

namespace app\validate;

use think\Validate;

class EntityValidate extends Validate
{

    /**
     * sceneGetAssetRelationShotTaskCardList
     * @return EntityValidate
     */
    public function sceneGetAssetRelationShotTaskCardList(): EntityValidate
    {
        return $this->append('param.entity_id', 'require');
    }

    /**
     * GetAssetRelationShotList 获取资产关联的镜头列表
     * @return EntityValidate
     */
    public function sceneGetAssetRelationShotList(): EntityValidate
    {
        return $this->append([
            'param.entity_id' => 'require|integer',
//            'param.initial_episode_code' => 'array',
        ]);
    }

    /**
     * GetMultipleEntityRelationIds 获取多个实体的关联ids
     * @return EntityValidate
     */
    public function sceneGetMultipleEntityRelationIds(): EntityValidate
    {
        return $this->append([
//            'entity_id' => 'require|integer',
//            'initial_episode_code' => 'array',
        ]);
    }

    /**
     * GetAssetRelationShotCount 获取多个实体的关联ids
     * @return EntityValidate
     */
    public function sceneGetAssetRelationShotCount(): EntityValidate
    {
        return $this->append([
            'param.entity_id' => 'require|integer',
            'param.project_id' => 'require|integer',
        ]);
    }
}
